\hypertarget{classWorkerDiscoveryProxy}{
\section{WorkerDiscoveryProxy Class Reference}
\label{classWorkerDiscoveryProxy}\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
}
{\tt \#include $<$workerdiscoveryproxy.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classWorkerDiscoveryProxy_3a1a21fce2f21d9b75b4d530773d6114}{
\hyperlink{classWorkerDiscoveryProxy_3a1a21fce2f21d9b75b4d530773d6114}{WorkerDiscoveryProxy} ()}
\label{classWorkerDiscoveryProxy_3a1a21fce2f21d9b75b4d530773d6114}

\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
\hyperlink{classWorkerDiscoveryProxy_fa42f4636001c1ebfc27ea006f1341d0}{WorkerDiscoveryProxy} (const std::string \&IP, boost::uint16\_\-t port)
\begin{CompactList}\small\item\em Configures client with specified IP and port. \item\end{CompactList}\item 
\hyperlink{classWorkerDiscoveryProxy_201a40d7d40eaa1f16462422129712ea}{WorkerDiscoveryProxy} (const \hyperlink{classAddress}{Address} \&address)
\begin{CompactList}\small\item\em Configures client with specified address. \item\end{CompactList}\item 
\hypertarget{classWorkerDiscoveryProxy_10144b1483cf3b694020da4aa386d851}{
\hyperlink{classWorkerDiscoveryProxy_10144b1483cf3b694020da4aa386d851}{$\sim$WorkerDiscoveryProxy} ()}
\label{classWorkerDiscoveryProxy_10144b1483cf3b694020da4aa386d851}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
const \hyperlink{classAddress}{Address} \& \hyperlink{classWorkerDiscoveryProxy_ea566d8831aa4a856c8656cc146fc948}{getAddr} () const 
\begin{CompactList}\small\item\em Gets address of the discovery node. \item\end{CompactList}\item 
void \hyperlink{classWorkerDiscoveryProxy_0e95826fe7157f3468c034819aacbbb2}{setAddr} (const std::string \&IP, boost::uint16\_\-t port)
\begin{CompactList}\small\item\em Sets address of the discovery node using provided IP and port. \item\end{CompactList}\item 
void \hyperlink{classWorkerDiscoveryProxy_0d34eecdfc09ba653a696d048f6e61f0}{setAddr} (const \hyperlink{classAddress}{Address} \&address)
\begin{CompactList}\small\item\em Sets address of the discovery node using provided address. \item\end{CompactList}\item 
\hyperlink{classAddress}{Address} \hyperlink{classWorkerDiscoveryProxy_64b870af03fb33753c2f746a1007f9c0}{getWorker} (const \hyperlink{classTaskDescriptor}{TaskDescriptor} \&td)
\begin{CompactList}\small\item\em Asks the discovery node for the address of a worker capable of handling provided \hyperlink{classTaskDescriptor}{TaskDescriptor}. \item\end{CompactList}\item 
void \hyperlink{classWorkerDiscoveryProxy_ce0b70de9b9577b01ed9b473d04de0b4}{addWorker} (const \hyperlink{classWorkerDescriptor}{WorkerDescriptor} \&wd)
\begin{CompactList}\small\item\em Asks the discovery node to add provided worker to the workers container. \item\end{CompactList}\item 
void \hyperlink{classWorkerDiscoveryProxy_115b3ca4d8171a562478227d2f970a8a}{updateWorker} (size\_\-t index, const \hyperlink{classWorkerDescriptor}{WorkerDescriptor} \&wd)
\begin{CompactList}\small\item\em Asks the discovery node to replace \hyperlink{classWorkerDescriptor}{WorkerDescriptor} at provided index with new content. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
\hyperlink{classWorkerDiscoveryProxy}{WorkerDiscoveryProxy}

Proxy which allows remote access to the workers' collection of the discovery node. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classWorkerDiscoveryProxy_fa42f4636001c1ebfc27ea006f1341d0}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[WorkerDiscoveryProxy]{\setlength{\rightskip}{0pt plus 5cm}WorkerDiscoveryProxy::WorkerDiscoveryProxy (const std::string \& {\em IP}, \/  boost::uint16\_\-t {\em port})}}
\label{classWorkerDiscoveryProxy_fa42f4636001c1ebfc27ea006f1341d0}


Configures client with specified IP and port. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em IP}]The provided IP address. \item[{\em port}]The provided port. \end{description}
\end{Desc}
\hypertarget{classWorkerDiscoveryProxy_201a40d7d40eaa1f16462422129712ea}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[WorkerDiscoveryProxy]{\setlength{\rightskip}{0pt plus 5cm}WorkerDiscoveryProxy::WorkerDiscoveryProxy (const {\bf Address} \& {\em address})}}
\label{classWorkerDiscoveryProxy_201a40d7d40eaa1f16462422129712ea}


Configures client with specified address. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em address}]The provided address. \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\hypertarget{classWorkerDiscoveryProxy_ea566d8831aa4a856c8656cc146fc948}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!getAddr@{getAddr}}
\index{getAddr@{getAddr}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[getAddr]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Address} \& WorkerDiscoveryProxy::getAddr (void) const}}
\label{classWorkerDiscoveryProxy_ea566d8831aa4a856c8656cc146fc948}


Gets address of the discovery node. 

\begin{Desc}
\item[Returns:]Discovery address. \end{Desc}
\hypertarget{classWorkerDiscoveryProxy_0e95826fe7157f3468c034819aacbbb2}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!setAddr@{setAddr}}
\index{setAddr@{setAddr}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[setAddr]{\setlength{\rightskip}{0pt plus 5cm}void WorkerDiscoveryProxy::setAddr (const std::string \& {\em IP}, \/  boost::uint16\_\-t {\em port})}}
\label{classWorkerDiscoveryProxy_0e95826fe7157f3468c034819aacbbb2}


Sets address of the discovery node using provided IP and port. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em IP}]The provided IP address. \item[{\em port}]The provided port. \end{description}
\end{Desc}
\hypertarget{classWorkerDiscoveryProxy_0d34eecdfc09ba653a696d048f6e61f0}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!setAddr@{setAddr}}
\index{setAddr@{setAddr}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[setAddr]{\setlength{\rightskip}{0pt plus 5cm}void WorkerDiscoveryProxy::setAddr (const {\bf Address} \& {\em address})}}
\label{classWorkerDiscoveryProxy_0d34eecdfc09ba653a696d048f6e61f0}


Sets address of the discovery node using provided address. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em address}]The provided address. \end{description}
\end{Desc}
\hypertarget{classWorkerDiscoveryProxy_64b870af03fb33753c2f746a1007f9c0}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!getWorker@{getWorker}}
\index{getWorker@{getWorker}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[getWorker]{\setlength{\rightskip}{0pt plus 5cm}{\bf Address} WorkerDiscoveryProxy::getWorker (const {\bf TaskDescriptor} \& {\em td})}}
\label{classWorkerDiscoveryProxy_64b870af03fb33753c2f746a1007f9c0}


Asks the discovery node for the address of a worker capable of handling provided \hyperlink{classTaskDescriptor}{TaskDescriptor}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em td}]The provided \hyperlink{classTaskDescriptor}{TaskDescriptor}. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The \hyperlink{classAddress}{Address} of the worker found according to search criteria. \end{Desc}
\hypertarget{classWorkerDiscoveryProxy_ce0b70de9b9577b01ed9b473d04de0b4}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!addWorker@{addWorker}}
\index{addWorker@{addWorker}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[addWorker]{\setlength{\rightskip}{0pt plus 5cm}void WorkerDiscoveryProxy::addWorker (const {\bf WorkerDescriptor} \& {\em wd})}}
\label{classWorkerDiscoveryProxy_ce0b70de9b9577b01ed9b473d04de0b4}


Asks the discovery node to add provided worker to the workers container. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em wd}]The provided \hyperlink{classWorkerDescriptor}{WorkerDescriptor}. \end{description}
\end{Desc}
\hypertarget{classWorkerDiscoveryProxy_115b3ca4d8171a562478227d2f970a8a}{
\index{WorkerDiscoveryProxy@{WorkerDiscoveryProxy}!updateWorker@{updateWorker}}
\index{updateWorker@{updateWorker}!WorkerDiscoveryProxy@{WorkerDiscoveryProxy}}
\subsubsection[updateWorker]{\setlength{\rightskip}{0pt plus 5cm}void WorkerDiscoveryProxy::updateWorker (size\_\-t {\em index}, \/  const {\bf WorkerDescriptor} \& {\em wd})}}
\label{classWorkerDiscoveryProxy_115b3ca4d8171a562478227d2f970a8a}


Asks the discovery node to replace \hyperlink{classWorkerDescriptor}{WorkerDescriptor} at provided index with new content. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The provided index. \item[{\em wd}]The provided \hyperlink{classWorkerDescriptor}{WorkerDescriptor}. \end{description}
\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
\hyperlink{workerdiscoveryproxy_8h}{workerdiscoveryproxy.h}\item 
\hyperlink{workerdiscoveryproxy_8cpp}{workerdiscoveryproxy.cpp}\end{CompactItemize}
